require("lualib_bundle");
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 1,["5"] = 1,["6"] = 1,["8"] = 8,["9"] = 9,["10"] = 10,["11"] = 5,["12"] = 14,["13"] = 15,["14"] = 16,["15"] = 17,["16"] = 18,["17"] = 19,["18"] = 20,["19"] = 20,["20"] = 20,["21"] = 20,["22"] = 20,["23"] = 20,["24"] = 20,["25"] = 20,["28"] = 14,["29"] = 3,["30"] = 1});
local ____exports = {}
____exports.default = __TS__Class()
local AddPropertyOnUseAbilityState = ____exports.default
AddPropertyOnUseAbilityState.name = "AddPropertyOnUseAbilityState"
function AddPropertyOnUseAbilityState.prototype.____constructor(self)
    local triggerHandle = CreateTrigger()
    TriggerRegisterAnyUnitEventBJ(triggerHandle, EVENT_PLAYER_UNIT_SPELL_EFFECT)
    TriggerAddAction(triggerHandle, self.action)
end
function AddPropertyOnUseAbilityState.prototype.action()
    local spellAbilityIdStr = id2string(GetSpellAbilityId())
    local cfgData = ____exports.default.config[spellAbilityIdStr]
    if cfgData then
        local unit = GetTriggerUnit()
        if cfgData.addBaseDamage then
            SetUnitState(
                unit,
                ConvertUnitState(18),
                GetUnitState(
                    unit,
                    ConvertUnitState(18)
                ) + cfgData.addBaseDamage
            )
        end
    end
end
AddPropertyOnUseAbilityState.config = {}
____exports.default = AddPropertyOnUseAbilityState
return ____exports
